﻿namespace Library.Winform.Draw {
  public class CircleDraw : EllipseDraw {
    public CircleDraw()
      : this(0, 0, 1, 1) {
    }

    public CircleDraw(int x, int y, int width, int height)
      : base(x, y, width, height) {
    }
    protected override void BuildRectange(int x, int y, int width, int height) {
      if (width == Rec.Width) {
        width = height;
      } else
        if (height == Rec.Height) {
          height = width;
        } else {
          width = height;
        }
      base.BuildRectange(x, y, width, height);
    }
  }
}
